package com.maysham.tripod.model;

import lombok.Data;
import org.springframework.data.annotation.*;
import org.springframework.data.mongodb.core.mapping.DBRef;
@Data
public class BaseModel {
    @Id
    private String id;

    @DBRef
    @CreatedBy
    private User author;

    @DBRef
    @LastModifiedBy
    private User modifier;

    @CreatedDate
    private long createdOn;

    @LastModifiedDate
    private long updatedOn;

    private boolean deleted;
}
